<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-model结合select</title>
</head>
<script src="../js/vue.js"></script>
<body>

<div id="app">
    <select name="abc" id="" v-model="fruit">
        <option value="apple">apple</option>
        <option value="banana">banana</option>
        <option value="orange">orange</option>
    </select>

    <h2>{{fruit}}</h2>

    <select name="ab" multiple v-model="fruits">
        <option value="apple">apple</option>
        <option value="banana">banana</option>
        <option value="orange">orange</option>
    </select>

    <h2>{{fruits}}</h2>


    
</div>

</body>

<script>
    const vue = new Vue({
        'el': '#app',
        'data': {
            fruit: 'banana',
            fruits: []
        },
        'methods': {}
    })
</script>
</html>